<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<!--view层-->
<div id="app">
  <h2>{{message}}</h2>
  <a v-bind:href="url">百度一下</a>
  <img v-bind:src="imageurl" alt="">
  <h2>语法糖写法,真实开发这么写,快,强烈推荐!!!!</h2>
  <img :src="imageurl" alt="">

</div>
<!--viewModel层-->
<script src="../../js/vue.js"></script>
<!--model层-->
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: 'v-bind的简单使用,mustache语法只能在内容中共使用哦,属性中请用v-bind',
      url: 'http://www.baidu.com',
      imageurl: 'https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1581414666&di=c1281c60e6ba88e9af87d89f3c7a576f&src=http://img01.taopic.com/170909/240478-1FZZA05449.jpg'
    }, methods: {
      test: function (msg) {
        //声明方法
      }
    }, created: function () {
      //生命周期
    }, mounted: function () {
      //生命周期
    }
  })
</script>
</body>
</html>